import 'package:yun/generated/json/base/json_convert_content.dart';
import 'package:yun/entity/id_reader_entity.dart';

IdReaderEntity $IdReaderEntityFromJson(Map<String, dynamic> json) {
	final IdReaderEntity idReaderEntity = IdReaderEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		idReaderEntity.id = id;
	}
	final String? sex = jsonConvert.convert<String>(json['sex']);
	if (sex != null) {
		idReaderEntity.sex = sex;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		idReaderEntity.name = name;
	}
	final int? type = jsonConvert.convert<int>(json['type']);
	if (type != null) {
		idReaderEntity.type = type;
	}
	final String? nation = jsonConvert.convert<String>(json['nation']);
	if (nation != null) {
		idReaderEntity.nation = nation;
	}
	final String? office = jsonConvert.convert<String>(json['office']);
	if (office != null) {
		idReaderEntity.office = office;
	}
	final String? address = jsonConvert.convert<String>(json['address']);
	if (address != null) {
		idReaderEntity.address = address;
	}
	final String? endTime = jsonConvert.convert<String>(json['endTime']);
	if (endTime != null) {
		idReaderEntity.endTime = endTime;
	}
	final String? birthday = jsonConvert.convert<String>(json['birthday']);
	if (birthday != null) {
		idReaderEntity.birthday = birthday;
	}
	final String? startTime = jsonConvert.convert<String>(json['startTime']);
	if (startTime != null) {
		idReaderEntity.startTime = startTime;
	}
	return idReaderEntity;
}

Map<String, dynamic> $IdReaderEntityToJson(IdReaderEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['sex'] = entity.sex;
	data['name'] = entity.name;
	data['type'] = entity.type;
	data['nation'] = entity.nation;
	data['office'] = entity.office;
	data['address'] = entity.address;
	data['endTime'] = entity.endTime;
	data['birthday'] = entity.birthday;
	data['startTime'] = entity.startTime;
	return data;
}